package com.QSystem.mapper;


import com.QSystem.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;


@Mapper
@Repository
public interface UserMapper {
    //获取全部
    List<User> getAllUser();
    //根据id获取
    User query(User user);
    //根据username查询
    User queryByName(User user);

    //根据userName获取用户id获取
    Integer getUserId(String userName);

    int addUser(User user);
    int deleteUser(Integer id);
    int updateUser(User user);

}
